#/bin/bash
clear
make

MODULE_NAME="trusted_path"
sd_name=$(lsblk | grep sd | awk '{ print $1  }')
bash trace_driver.sh
# echo 1 > /sys/block/sdb/device/delete

# mod_load=$(lsmod | grep ${MODULE_NAME})
# if [ ! -z "${mod_load}" ]
# then
#     rmmod "${MODULE_NAME}"
# fi

# dmesg -c > /dev/null 2>&1
# insmod "${MODULE_NAME}.ko"

# echo "- - -" > /sys/class/scsi_host/host0/scan
# echo "- - -" > /sys/class/scsi_host/host1/scan
# echo "- - -" > /sys/class/scsi_host/host2/scan

echo "======================"
dmesg
echo "======================"

echo "ls /sys/devices/tp_hosts"
ls /sys/devices/tp_hosts

ls /sys/class/scsi_host

make clean > /dev/null 2>&1
